home *** CD-ROM | disk | FTP | other *** search
-
- This describes the animation types supported and some of their special
- features. It's more of an organized rambling but might give insight into
- what's going on.
-
- FLI Animations:
-
- FLI is by Autodesk Animator for the PC's. Support is for the 320x256
- images. The file is composed of a series of images and deltas(a delta is
- data that can generate the next image given a previous image) to be played in
- sequence. An FLI animation can also change the color map during the anim.
-
- IFF Animations and Images:
-
- IFF files were developed for the Amiga. Sound chunks are ignored. IFF
- Animation files are meant to be double buffered. The deltas refer not to the
- previous image, but the image before the previous(two back). I know of 6 types
- of compressions 1,2,3,4,5 and J. I've only included types 3, 5 and J because
- those are the only ones I could test. The J type compression usually has an
- ANSI chunk at the end which includes the order in which the deltas are to be
- applied and they can be used more than once.
- IFF animations can be looping and non-looping. Looping means the last two
- deltas produce images that are the same as the 1st two images. To continuously
- loop you would not jump back to the beginning the the 2nd image instead.
- In order to lopp non-looping animations you would need to jump to the 1st
- image. There's no way to know ahead of time which is which so the default
- is looping and if you have a non-looping animation use the -c switch.
-
- The Amiga has a couple of wierd display modes, EHB and HAM. XAnim fully
- supports EHB animations. HAM can produce 4096 colors(4 bits each red, green,
- and blue) and XAnim will display HAM animations as 332(3 bits red, 3 bits
- green and 2 bits blue). Surprisingly enough, it's not too bad.
-
- IFF supports a color cycling chunk(s) that specify color ranges to be cycled
- at specified intervals. Since there's no obvious end to this type of
- animation, I just display it until a key 'g' is pressed inside the display
- window.
-
- IFF images are supported as well. no compression and compression 1(XAnim
- makes use of the public domain unpacker routine by By Jerry Morrison and
- Steve Shaw). See unpacker.c
-
- GIF Images/Animations.
-
- The GIF file consists of a screen color map and then a series of images, each
- with their own optional color map. The images don't have to be at the origin
- and can be any size smaller than the screen size. This allows GIF animations
- to be created that only update the part of the screen that changes. I don't
- have a program that does this yet but gifmerge is a step in that direction.
-
- GIF images are automatically uncompressed when read in.
-
- TXT files
-
- Probably should be called something else. Basically it is a ascii text file
- that lists a number of GIF files to be displayed. Optionally, you can specify
- the sequence the files are displayed in. Comments aren't supported. I need
- to put a lot of work and thought into improving this one.
-
- TXT format needs to have txt91 as the 1st 5 characters in the file. Following
- that there are a series of fields. Fields just have to be separated from
- each other by white space. No extraneous characters(ie comments) are
- supported, yet.
-
- txt91 <--- header so XAnim knows what kind of file it is
- 4 <--- number of GIF filenames that follow
- a.gif <--- gif file to be read in. 1st file is number 0.
- b.gif
- c.gif
- d.gif
- 6 <--- number of frames that follow.
- 0 1 2 3 <--- display images in this order.
- 2 1
-
- The sequence will be a.gif b.gif c.gif d.gif c.gif b.gif. Most likely this
- anim will be looped and the last b.gif will flow smoothly into a.gif as it
- starts over.
-
-